// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   CommonDao.java

package mycommon.model.orm;

import java.util.List;

public interface CommonDao
{

	public abstract boolean save(Object obj)
		throws Exception;

	public abstract boolean saveOrUpdate(Object obj)
		throws Exception;

	public abstract boolean delete(Object obj)
		throws Exception;

	public abstract boolean delete(Object obj, Class aclass[])
		throws Exception;

	public abstract boolean update(Object obj)
		throws Exception;

	public abstract Object load(Class class1, Integer integer)
		throws Exception;

	public abstract Object load(Class class1, Integer integer, Class aclass[])
		throws Exception;

	public abstract List loadAll(Class class1)
		throws Exception;

	public abstract List loadAll(Class class1, Class aclass[])
		throws Exception;

	public abstract List loadByPage(Class class1, int i, int j)
		throws Exception;

	public abstract List loadByPage(Class class1, int i, int j, Class aclass[])
		throws Exception;
	
	public abstract List loadByPage(String hql,int startPage,int pageSize,Class[] associate)throws Exception;

	public abstract List loadByPage(String hql,int startPage,int pageSize)throws Exception;
	public abstract List loadByQuery(String s)
		throws Exception;

	public abstract List loadByQuery(String s, Class aclass[])
		throws Exception;

	public abstract Object loadByQueryUneque(String s)
		throws Exception;

	public abstract Object loadByQueryUneque(String s, Class aclass[])
		throws Exception;

	public abstract List loadSqlQuery(String s, Class class1)
		throws Exception;

	public abstract List loadSqlQuery(String s, Class class1, Class aclass[])
		throws Exception;

	public abstract Object loadSqlQueryUneque(String s, Class class1)
		throws Exception;

	public abstract Object loadSqlQueryUneque(String s, Class class1, Class aclass[])
		throws Exception;

	public abstract boolean executeHqlQuery(String s)
		throws Exception;

	public abstract boolean executeSql(String s)
		throws Exception;
}
